package com.ruoyi.word.dao.mapper;

import com.ruoyi.common.domain.word.CommonWordSentence;
import com.ruoyi.common.domain.word.vo.CommonWordSentenceVO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;


import java.util.List;
import java.util.Map;

public interface CommonWordSentenceMapper extends Mapper<CommonWordSentence> {

    int deleteByWid(@Param("wid") Long wid);

    int deleteByWidSourceIsNull(@Param("wid") Long wid);

    int countExSentence(@Param("wid") Long wid);

    int countExSentenceWithPh(@Param("wid") Long wid);

    List<Long> getExSenIdsByWord(@Param("word") String word);

    boolean existsBySubjectId(@Param("subId") Long subId);

    List<Map> countBySid(@Param("subId") Long subId);

    int updatePhBySid(@Param("ph") String ph, @Param("sid") Long sid);

    List<CommonWordSentence> findExSentence(@Param("wid") Long wid);

}